#ifndef MENU_DEFINS_H
#define MENU_DEFINS_H
#pragma once

#include <QString>
#include <QObject>
#include <QVariantList>

static const QString MAIN_TITLE(QObject::tr("Main Window"));

static const QString MENU_SYSTEM_SET(QObject::tr("System Setting"));
static const QString MENU_QUERY(QObject::tr("Query"));
static const QString MENU_USER_MANAGER(QObject::tr("User Manage"));
static const QString MENU_LOCK_SCREEN(QObject::tr("Lock Screen"));
static const QString MENU_EXIT(QObject::tr("Quit"));

static const QString MENU_CHANGE_PASSWD(QObject::tr("Edit Password"));
static const QString MENU_LOGOUT(QObject::tr("Logout"));

static const QString SUB_MENU_SYS_PARAM(QObject::tr("Setting"));
static const QString SUB_MENU_SYS_STATION(QObject::tr("Station"));

static const QString SUB_MENU_QUERY_LOG(QObject::tr("History Log"));
static const QString SUB_MENU_QUERY_DATA(QObject::tr("History Data"));

static const QString SUB_MENU_USER_GROUP(QObject::tr("Account Type"));
static const QString SUB_MENU_USER(QObject::tr("Account"));

static const QMap<QString, QVariantList> g_MenuMap
{
    {MENU_SYSTEM_SET, {SUB_MENU_SYS_PARAM, SUB_MENU_SYS_STATION}},
    {MENU_QUERY, {SUB_MENU_QUERY_LOG, SUB_MENU_QUERY_DATA}},
    {MENU_USER_MANAGER, {SUB_MENU_USER_GROUP, SUB_MENU_USER}}
};

#endif // MENU_DEFINS_H
